#!/bin/bash

emissor=$1
receptor=$2
hops=$3
id=$4

echo "Running ScriptGerador para Precision Location ID $id... "

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
emissor=$(expr $emissor + 4)
hops=$(expr $hops + 2)

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
emissor=$(expr $emissor + 4)
hops=$(expr $hops + 2)

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
emissor=$(expr $emissor + 4)
hops=$(expr $hops + 2)

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
emissor=$(expr $emissor + 4)
hops=$(expr $hops + 2)

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
emissor=$(expr $emissor + 4)
hops=$(expr $hops + 2)

echo "Running Simulation for $hops hops"
echo "Waf running with client =" $emissor " server = "$receptor
bash ScriptLocation.sh $emissor $receptor $hops $id
 

